package com.ta.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ta.gulimall.common.utils.system.PageUtils;
import com.ta.gulimall.ware.view.entity.PurchaseEntity;
import com.ta.gulimall.ware.view.vo.FinishPurchaseVo;
import com.ta.gulimall.ware.view.vo.MergePurchaseVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author tuao
 * @email tuaoo@gmail.com
 * @date 2022-10-29 10:38:37
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    /**
     * 回显没有领取的采购单
     *
     * @return
     */
    PageUtils listNoReceivePurchase(Map<String, Object> params);

    /**
     * 合并采购单
     * @param mergePurchaseVo
     */
    void mergePurchase(MergePurchaseVo mergePurchaseVo);

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 领取采购单
     * @param purchaseIds
     */
    void receivedPurchase(List<Long> purchaseIds);

    /**
     * 完成采购单状态
     * @param purchaseVo
     */
    void donePurchase(FinishPurchaseVo purchaseVo);
}

